<?php

include_once("../model/Model.php");

$frndid = $_POST['frndid'];
$msg = $_POST['msg'];

$model = new Model();
$ans = $model->addMsg($frndid,$msg);

echo "<script>parent.$.fancybox.close();</script>";

?>
